package hn.cch.controller.v0;

import hn.cch.entity.request.TestPostRequest;
import hn.cch.message.request.LoginRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping(value = "/v0")
@RestController
public class SecurityController {
    private static final Logger logger = LoggerFactory.getLogger(SecurityController.class);

    @GetMapping(value = "/success")
    @ResponseBody
    public String success(){
        return "success";
    }

    @GetMapping(value = "/failure")
    @ResponseBody
    public String failure(){
        return "failure";
    }

    @PostMapping(value = "/smsLogin")
    @ResponseBody
    public String smsLogin(@RequestBody LoginRequest request){
        return "post";
    }

    @PostMapping(value = "/qrLogin")
    @ResponseBody
    public String qrLogin(@RequestBody LoginRequest request){
        return "post";
    }
}
